package com.triumphxx.testcase;

import com.triumphxx.testcase.utils.DateUtil;
import com.triumphxx.testcase.utils.PubFun;

/**
 * @author:triumphxx
 * @Date: 2025/9/24
 * @Time: 11:17
 * @微信公众号：思考集结处
 * @网站：http://blog.triumphxx.com.cn
 * @GitHub https://github.com/triumphxx
 * @Desc: 日期比较
 **/

public class DateCompareTest {

    public static void main(String[] args) {
        String sourceDate = "2025-09-24 00:00:00";
        String targetDate = PubFun.getCurrentDate()+ " " + PubFun.getCurrentTime();
        int compared = DateUtil.compareDate(sourceDate, targetDate);
        System.out.println(compared);
    }



}
